package com.example.icongyou.bean;

import com.google.gson.annotations.SerializedName;

public class StudentCourseProgress {

    @SerializedName("progressId")
    private String progressId;  // 进度记录ID (主键)

    @SerializedName("studentId")
    private String studentId;   // 学生ID

    @SerializedName("courseId")
    private String courseId;    // 课程ID（关联Course表）

    @SerializedName("completedLessons")
    private int completedLessons; // 已完成课时

    @SerializedName("progressRate")
    private double progressRate; // 进度百分比（0.0-1.0）

    @SerializedName("lastStudyTime")
    private String lastStudyTime; // 最后学习时间（yyyy-MM-dd HH:mm:ss）

    // 完整构造函数
    public StudentCourseProgress(String progressId, String studentId, String courseId, int completedLessons, double progressRate, String lastStudyTime) {
        this.progressId = progressId;
        this.studentId = studentId;
        this.courseId = courseId;
        this.completedLessons = completedLessons;
        this.progressRate = progressRate;
        this.lastStudyTime = lastStudyTime;
    }

    // Getters and Setters
    public String getProgressId() {
        return progressId;
    }

    public void setProgressId(String progressId) {
        this.progressId = progressId;
    }

    public String getStudentId() {
        return studentId;
    }

    public void setStudentId(String studentId) {
        this.studentId = studentId;
    }

    public String getCourseId() {
        return courseId;
    }

    public void setCourseId(String courseId) {
        this.courseId = courseId;
    }

    public int getCompletedLessons() {
        return completedLessons;
    }

    public void setCompletedLessons(int completedLessons) {
        this.completedLessons = completedLessons;
    }

    public double getProgressRate() {
        return progressRate;
    }

    public void setProgressRate(double progressRate) {
        this.progressRate = progressRate;
    }

    public String getLastStudyTime() {
        return lastStudyTime;
    }

    public void setLastStudyTime(String lastStudyTime) {
        this.lastStudyTime = lastStudyTime;
    }
}